package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierDao {

    Integer getTotal(@Param("supplierName")String supplierName);

    List<Supplier> findPage(@Param("size") Integer size,
                            @Param("rows") Integer rows,
                            @Param("supplierName") String supplierName);

    void update(@Param("supplier") Supplier supplier);

    void save(@Param("supplier") Supplier supplier);

    void delete(@Param("ids") String[] split);
}
